package bstsetcode;

/**
 * @author noob
 * @version 1.0
 * @date 2021/3/13 16:22
 */
public  class  ArrayGenerator {

    private ArrayGenerator(){}

    /**
     * 生成有序的数组
     */
    public  static Integer[] generateOrderArray(int n){
        Integer[] arr = new Integer[n];
        for (int i = 0; i < n; i++) {
            arr[i] = i;
        }
        return arr;
    }
}
